<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>Spring MVC - HelloWorld</title>
</head>
<body>
	<div id="divMsg" style="display: none">${message}</div>
	<table id="table" border="1" align="center">
		<thead>
			<tr style="color: red">
				<td width="50px"></td>
				<td width="300px">示例</td>
				<td width="300px">地址</td>
				<td width="300px">备注</td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td></td>
				<td>test1</td>
				<td><a href="request/test1" target="_blank">/request/test1</a></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td>test2?id={int}</td>
				<td><a href="request/test2?id=1" target="_blank">/request/test2?id=1</a></td>
				<td>id不能为空</td>
			</tr>
			<tr>
				<td></td>
				<td>test3?id={Integer}</td>
				<td><a href="request/test2?id=1" target="_blank">/request/test3?id=1</a></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td>test4?id={Integer}&name={String}</td>
				<td><a href="request/test4?id=1&name=zhangsan" target="_blank">request/test4?id=1&name=zhangsan</a></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td>test5?id={Integer}&name={String}</td>
				<td><a href="request/test5?id=1&name=zhangsan" target="_blank">request/test5?id=1&name=zhangsan</a></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td>test6?id={Integer}&name={String}</td>
				<td><a href="request/test6?id=1&name=zhangsan" target="_blank">request/test6?id=1&name=zhangsan</a></td>
				<td>@RequestParam("id" ), @RequestParam("name" )</td>
			</tr>
			<tr>
				<td></td>
				<td>test7/{id}</td>
				<td><a href="request/test7/15" target="_blank">request/test7/15</a></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td>test8?val=enheng</td>
				<td><a href="request/test8?val=enheng" target="_blank">request/test8?val=enheng</a></td>
				<td></td>
			</tr>
		</tbody>
	</table>
</body>

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
	$(function(){
		$("table tbody tr").each(function(i, row){
			$(this).attr("height", "50");
			$(this).find("td").eq(0).attr("align", "center").text(i+1);
		})
	})
</script>
</html>